<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>v-for</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app">
    <ul>
        <li v-for="(item,index) in items">
           {{ index+1 }}-{{ item.bookName }}
        </li>
    </ul>
</div>
<script>
    var vm=new Vue({ 
        el: '#app', 
        data: {
            items: [
                { bookName: 'HTML5+CSS3移动Web开发实战' },
                { bookName: '零基础学Python' },
                { bookName: '数学之美' }
              ]
          }
        })
</script>
</body>
</html>
